package com.ivo.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * @author Xiaoming Wang
 * Base class with some common property
 */
@MappedSuperclass
public class Model implements Serializable
{
	private static final long serialVersionUID = -7841055419818865427L;

	private Boolean isValid = true;
	private String creator = "00000000";
	private Date createDate = new Date();
	private String updater = "00000000";
	private Date updateDate = new Date();
	private String memo = "";

	@Column(name = "IS_VALID")
	public Boolean getIsValid()
	{
		return isValid;
	}

	public void setIsValid(Boolean isValid)
	{
		this.isValid = isValid;
	}

	@Column(name = "CREATOR", length = 50)
	public String getCreator()
	{
		return creator;
	}

	public void setCreator(String creator)
	{
		this.creator = creator;
	}

	@Column(name = "CREATE_DATE")
	public Date getCreateDate()
	{
		return createDate;
	}

	public void setCreateDate(Date createDate)
	{
		this.createDate = createDate;
	}

	@Column(name = "UPDATER", length = 50)
	public String getUpdater()
	{
		return updater;
	}

	public void setUpdater(String updater)
	{
		this.updater = updater;
	}

	@Column(name = "UPDATE_DATE")
	public Date getUpdateDate()
	{
		return updateDate;
	}

	public void setUpdateDate(Date updateDate)
	{
		this.updateDate = updateDate;
	}

	@Column(name = "MEMO")
	public String getMemo()
	{
		return memo;
	}

	public void setMemo(String memo)
	{
		this.memo = memo;
	}

}
